package cn.silver.module.oss.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "oss_share_file")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "OssShareFile", title = "对象存储管理-文件分享信息-分享内容管理")
public class OssShareFile extends BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 上级节点
     */
    @Schema(title = "上级节点")
    private String pid;
    /**
     * 目录类型
     */
    @Schema(title = "目录类型")
    private String type;
    /**
     * 文件信息
     */
    @Schema(title = "文件信息")
    private String fileId;
    /**
     * 文件大小
     */
    @Schema(title = "文件大小")
    private Integer fileSize;
    /**
     * 文件排序
     */
    @Schema(title = "文件排序")
    private Integer sort;
    /**
     * 用户id
     */
    @Schema(title = "用户id")
    private String userId;
    /**
     * 分享信息
     */
    @Schema(title = "分享信息")
    private String shareId;
}
